﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace FlashCart.Core.Converter
{
    public class ValueToStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            switch (value.ToString())
            {
                case "1": return "Week";
                case "2": return "Month";
                case "3": return "Quarter";
                case "4": return "Year";
                default: return "Day";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
